home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000115_schrod@iti.inf…th-darmstadt.de_Fri Dec 30 17:48:51 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  3KB

  1. Received: from rs2.hrz.th-darmstadt.de by cs.umb.edu with SMTP id AA04433
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 30 Dec 1994 10:49:04 -0500
  3. Received: from hp5.iti.informatik.th-darmstadt.de by rs2.hrz.th-darmstadt.de with SMTP id AA16925
  4.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 30 Dec 1994 16:48:52 +0100
  5. Received: from spice.iti.informatik.th-darmstadt.de by hp5.iti.informatik.th-darmstadt.de (8.6.9/Server-1.5/HRZ-THD/8.6.9u-ITI)
  6.     id QAA00844; Fri, 30 Dec 1994 16:48:52 +0100
  7. Received: by spice.iti.informatik.th-darmstadt.de (8.6.9/Client-1.5+iti/HRZ-THD)
  8.     id QAA22567; Fri, 30 Dec 1994 16:48:51 +0100
  9. From: Joachim Schrod <schrod@iti.informatik.th-darmstadt.de>
  10. Message-Id: <199412301548.QAA22567@spice.iti.informatik.th-darmstadt.de>
  11. Subject: kpathsea 2.5 ls-R finds wrong files
  12. To: tex-k@cs.umb.edu (web2c mailing list)
  13. Date: Fri, 30 Dec 1994 16:48:51 +0100 (MEZ)
  14. X-Mailer: ELM [version 2.4 PL24]
  15. Content-Type: text
  16. Content-Length: 1711      
  17.  
  18. SUMMARY:
  19.  
  20. If kpathsea searches a file via ls-R, it searches always the complete
  21. texmf tree. It should obey the current search path instead.
  22.  
  23.  
  24. THE PROBLEM:
  25.  
  26. Different files with the same names may reside in a texmf tree. The
  27. most prominent example are style files for LaTeX 2.09 and LaTeX2e. In
  28. my installation, I also have different FMT files. Let's use this as an
  29. example (since I can use kpathsea's debug output...):
  30.  
  31. kdebug:Search path for .fmt files (from TEXFORMATS environment variable)
  32. kdebug:  = /usr/local/lib/texmf/ini/web2c-6.1
  33. [...]
  34. kdebug:search(file=latex.fmt, must_exist=1, find_all=0, path=/usr/local/lib/texmf/ini/web2c-6.1).
  35. kdebug:2249 entries (in 276 directories) read from /usr/local/lib/texmf/ls-R.
  36. kdebug:hash_lookup(latex.fmt) => /usr/local/lib/texmf/ini/web2c-6.0/ /usr/local/lib/texmf/ini/web2c-6.1/
  37. kdebug:search(latex.fmt) =>/usr/local/lib/texmf/ini/web2c-6.0/latex.fmt
  38.  
  39. Of course, I want the second value from the hash_lookup above.
  40.  
  41. The same problem occurs with fonts, of course. The first cmr10.300pk
  42. found is used. (E.g., it may use cx fonts for a Ricoh print engine,
  43. or similar...)
  44.  
  45.  
  46. PROPOSED FIX:
  47.  
  48. Entries found by hash_lookup are filtered by checking if one element
  49. of the search path is their prefix and a directory separator follows
  50. that prefix.
  51.  
  52. Sorry, currently I don't find the time to implement that myself. If
  53. somebody does, please drop me a note. I might look at it in 2 weeks
  54. when I won't get a note. (I expect to be away until then.)
  55.  
  56.  
  57. Cheers,
  58.     Joachim
  59.  
  60. --
  61. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  62. Joachim Schrod            Email: schrod@iti.informatik.th-darmstadt.de
  63. Computer Science Department
  64. Technical University of Darmstadt, Germany